/**
 * Copyright (C) 2017 - 2020 https://github.com/joewee
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.bifrost.model;

import java.math.BigInteger;
import java.util.Date;

/**
 * @author joewee
 * @version 1.0.0
 * @Date 2017/11/7 19:14
 */
public class OrderModel extends BaseOrderModel {
    private Long carDetailId;
    private String carName;
    private Boolean needService, needInvoice;
    private Date preorderTime;
    private Long serviceShop, cartId;
    private Boolean isBonusPointsUsed = Boolean.FALSE;
    private BigInteger bonusPointsUsed = BigInteger.ZERO;

    /****
     *发票类型个人PERSONAL、公司COMPANY
     */
    private String invoiceType;
    /****
     * 发票抬头
     */
    private String invoiceTitle;
    /***
     *
     *公司发票时提供的税号
     */
    private String taxNumber;

    public OrderModel(Long carDetailId, Boolean needService, Date preorderTime, Long serviceShop) {
        super();
        this.carDetailId = carDetailId;
        this.needService = needService;
        this.preorderTime = preorderTime;
        this.serviceShop = serviceShop;
    }

    public OrderModel() {
        super();
    }

    public Long getCarDetailId() {
        return carDetailId;
    }

    public void setCarDetailId(Long carDetailId) {
        this.carDetailId = carDetailId;
    }

    public String getCarName() {
        return carName;
    }

    public void setCarName(String carName) {
        this.carName = carName;
    }

    public Boolean isNeedService() {
        return needService;
    }

    public void setNeedService(Boolean needService) {
        this.needService = needService;
    }

    public Date getPreorderTime() {
        return preorderTime;
    }

    public void setPreorderTime(Date preorderTime) {
        this.preorderTime = preorderTime;
    }

    public Long getServiceShop() {
        return serviceShop;
    }

    public void setServiceShop(Long serviceShop) {
        this.serviceShop = serviceShop;
    }

    public Boolean isNeedInvoice() {
        return needInvoice;
    }

    public void setNeedInvoice(Boolean needInvoice) {
        this.needInvoice = needInvoice;
    }

    public String getInvoiceType() {
        return invoiceType;
    }

    public void setInvoiceType(String invoiceType) {
        this.invoiceType = invoiceType;
    }

    public String getInvoiceTitle() {
        return invoiceTitle;
    }

    public void setInvoiceTitle(String invoiceTitle) {
        this.invoiceTitle = invoiceTitle;
    }

    public String getTaxNumber() {
        return taxNumber;
    }

    public void setTaxNumber(String taxNumber) {
        this.taxNumber = taxNumber;
    }

    public Long getCartId() {
        return cartId;
    }

    public void setCartId(Long cartId) {
        this.cartId = cartId;
    }

    public Boolean getIsBonusPointsUsed() {
        return isBonusPointsUsed;
    }

    public void setIsBonusPointsUsed(Boolean bonusPointsUsed) {
        isBonusPointsUsed = bonusPointsUsed;
    }

    public void setBonusPointsUsed(BigInteger bonusPointsUsed) {
        this.bonusPointsUsed = bonusPointsUsed;
    }

    public BigInteger getBonusPointsUsed() {
        return this.bonusPointsUsed;
    }


}
